package cn.community.system.service;

import cn.community.system.domain.Admin;
import cn.community.system.query.QueryObject;
import com.github.pagehelper.PageInfo;
import java.util.List;

public interface IAdminService {
    void delete(Long id);
    void save(Admin admin);
    Admin get(Long id);
    List<Admin> listAll();
    void update(Admin admin);

    // 分页
    PageInfo query(QueryObject qo);

    Admin userLogin(String userName, String password);

    void batchDelete(Long[] ids);

    Admin getAdminByUsername(String username);
}
